<?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
Class Other extends MY_Controller
{
    public function __construct()
    {
        parent::__construct();
        $this->checkAdmin($this->session->userdata('id_user'));
        $this->checkPermission($this->session->userdata('level'), array(1));
        $this->data['controller'] = 'other'; 
        $this->load->model('Mother');
    }
    
    
    public function emailsave()
    {
        $ip = $this->get_client_ip();
        die($this->Mother->saveEmailDB($ip));
    }
    
    public function facebooksave()
    {
        $ip = $this->get_client_ip();
        die($this->Mother->saveFacebookDB($ip));
    }
   
    
}
